﻿using System;
using System.Collections.Generic;
using System.Text;
using wyxuan.yoyu.Core.IM.Games.Gobang.Dto;

namespace wyxuan.yoyu.Core.IM.Games.Gobang
{
    public interface IGobangService
    {
        /// <summary>
        /// 加入房间
        /// </summary>
        /// <param name="roomId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Tuple<bool, string> JoinRoom(string roomId, string userId, string userName);


        /// <summary>
        /// play game
        /// </summary>
        /// <param name="roomId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Tuple<bool, string> Play(string roomId, string userId, ChessMan chess, out string failUserid);

        /// <summary>
        /// 获取当前游戏中的Id
        /// </summary>
        /// <param name="roomId"></param>
        /// <returns></returns>
        string[] GetCurrentPlayIds(string roomId);
    }
}
